
package cn.edu.sdjzu.xg.eagle.service;

import cn.edu.sdjzu.xg.eagle.entity.Pagination;
import cn.edu.sdjzu.xg.eagle.entity.School;
import cn.edu.sdjzu.xg.eagle.exception.BysjException;

import java.sql.SQLException;
import java.util.Collection;

public interface SchoolServiceInterface {
    //根据ID查询学院
    School find(Long id) throws SQLException, BysjException;
    //查询所有学院
    Collection<School> findAll() throws SQLException, BysjException;
    // 新增带分页参数方法
    Collection<School> findAll(Pagination pagination) throws SQLException, BysjException;
    // 添加学院
    boolean add(School school) throws SQLException;
    //更新学院信息
    boolean update(School school) throws SQLException;
    //删除学院
    boolean delete(Integer id) throws SQLException;
}